<div class="wrapper right-box-wrapper">
    <div class="right-box-title"><a href="#" title="Tin tức" class="right-box-caption"><h2><?php if(!empty($title)) echo $title; else echo 'Tin tức';?></h2></a></div>
    <div class="right-box-content">
        
        
        <div class="list-news-wrapper">
        	<?php
            	foreach($danhsachbaiviet as $baiviet):
			?>
                <!--block-->
                <a href="<?=site_url('thangthanh/detail/'.$baiviet->id)?>">
                	<?php
                    	if(!empty($baiviet->hinhanh))
							echo '<img src="images/img-news.jpg" width="194" height="112">';
					?>
                    
                    <strong><?=$baiviet->tieude?></strong>
                    <p><?=strip_tags($baiviet->mota)?></p>
                </a>
                <!--/post-->
            <?php
            	endforeach;
			?>
            
            
            
            
        </div>
        <style type="text/css">
			div.pages a{
				float:left;
				margin-left:3px;
				padding:2px 4px;
				background:#F3F3F3;
				border:solid 1px #BABABA;
				color:#30B5D6;
				font-weight:bold;
			}
			div.pages a:hover, div a.active_page{
				background:#30B5D6;
				color:#FFF;
				
			}
		</style>
        <div class="pages" style="clear:both; float:right; margin-top:8px; margin-bottom:10px;">
        	<?php
				echo $this->pagination->create_links();
            ?>
        </div>    
        
    </div>
    <div class="right-box-shadow"></div>
</div>